<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
  	<head>
	    <meta charset="utf-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>编辑博客</title>
    <script type="text/javascript" charset="utf-8" src="../script/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js"></script>
	<link href="../bootstarp/css/bootstrap.min.css" rel="stylesheet">
	<link href="../css/blog.css" rel="stylesheet">

</head>
<body class = "body">
<div class="container-fluid">

    <div class="row">
    	<div class="col-md-12">
		    <form  action="<%=request.getContextPath() %>/blog/addBlog.do" method="post" id="blogForm">
    		<div class="form-group">
				<dl class="dl-horizontal">
				  <dt>标题：</dt>
				  <dd><div class="col-xs-3"><input type="text" name="title"  class="form-control"/></div></dd>
				</dl>
				<dl class="dl-horizontal">
				  <dt>标签：</dt>
				  <dd><div class="col-xs-4"><input type="text" name="tagName1"  class="form-control"></div></dd>
				</dl> 
				<dl class="dl-horizontal">
				  <dt>博客类型：</dt>
				  <dd>
				  	<label class="radio-inline">
					  <input type="radio" name="blogType" id="inlineRadio1" value="1"> 技术
					</label>
					<label class="radio-inline">
					  <input type="radio" name="blogType" id="inlineRadio2" value="2"> 生活
					</label>
					<label class="radio-inline">
					  <input type="radio" name="blogType" id="inlineRadio3" value="3"> 工作
					</label>
				  </dd>
				</dl>
				<dl class="dl-horizontal">
				  <dt> </dt>
				  <dd><script id="editor" type="text/plain" style="width:1024px;height:500px;" name="content"></script></dd>
				</dl>
				
				  <button class="btn btn-info btn-primary btn-lg btn-block " type="button" id="saveButton">保存</button>
				      	
		    	<!-- 摘要 -->
		    	<input type="hidden" name="remark" id="remark" />
		    
		    </div>
		    </form>
    	</div>
    </div>
</div>
<script type="text/javascript">
//实例化编辑器
//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
var ue = UE.getEditor('editor');
</script>
<script type="text/javascript" src="editBlog.js"></script>
<script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
<script src="../bootstarp/js/bootstrap.min.js"></script>
</body>
</html>